Fix #39
authorjustbur <justin@burkett.cc>
Thu, 16 Jul 2015 00:12:09 +0000 (20:12 -0400)
committerjustbur <justin@burkett.cc>
Thu, 16 Jul 2015 00:12:09 +0000 (20:12 -0400)
`iso-transl-ctl-x-8-map' is not checked with `key-binding' because it's
stored in the `key-translation-map', so this adds a test against this
map.

which-key.el

index f2edf7901c6d5b0817310293239162a93e3475be..3683b39f34cb0bd9fa6f7756fbf606965159d190 100644 (file)
@@ -912,7 +912,10 @@ Finally, show the buffer."
     ;; (when (> (length prefix-keys) 0)
     ;;  (message "key binding: %s" (key-binding prefix-keys)))
     (when (and (> (length prefix-keys) 0)
-               (keymapp (key-binding prefix-keys))
+               (or
+                (keymapp (key-binding prefix-keys))
+                ;; Some keymaps are stored here like iso-transl-ctl-x-8-map
+                (keymapp (lookup-key key-translation-map prefix-keys)))
                (not which-key-inhibit))
       (let* ((buf (current-buffer))
              ;; get formatted key bindings